package com.neuedu.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.crypto.Data;
import java.time.LocalDateTime;
import java.time.ZoneOffset;

/**
 * 项目：      spring-framework
 * 类名:       IndexController
 * 创建时间：  2024/3/18 13：58
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
@Controller
public class IndexController {

    @ResponseBody
    @RequestMapping("/index")
    String hello(){
        //out.write()
        return "hello + "+ LocalDateTime.now().toEpochSecond(ZoneOffset.UTC);
    }

}
